<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/tab_cscenter.css">
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/notice.css">

<div class="container">
	<div class="starter-template" style="padding-right: 40px; padding-top: 40px; padding-bottom: 80px">
		<div class="alert alert-success">이곳은 ${requestScope.divideText }입니다.</div>

		<%-- <h1>${requestScope.divideText }</h1> --%>
		<h4>${requestScope.divideTextSub }</h4>

		<h3>상세내용</h3>
		<br>
		<blockquote>
			<p>No${requestScope.cscenter.cscenterNo }.&nbsp;&nbsp;&nbsp;${requestScope.cscenter.title }</p>
			<small>이 글을 쓴 회원은 "<a onclick="javascript:popUpProfileByNickname('${requestScope.cscenter.nickname }');">${requestScope.cscenter.nickname }</a>"입니다.&nbsp;
				작성 일시는 "${requestScope.cscenter.creDate}"이고, &nbsp;&nbsp;
				<cite title="Source Title">조회수는 "${ requestScope.cscenter.viewCnt}"입니다.</cite>
			</small>
		</blockquote>
		<div class="panel panel-default">
			<div class="panel-body">${requestScope.cscenter.content }</div>
		</div>

		<div class="btn-group" style="float: right;">
			<c:if test="${requestScope.cscenter.divide=='7'&&sessionScope.login_info.id==requestScope.cscenter.id}">
				<button type="button" class="btn btn-info"
					onclick="javascript:window.location.href='/${initParam.context_root }/cscenter/login/deleteContent.do?no=${requestScope.cscenter.cscenterNo}&page=${requestScope.page }&divide=${requestScope.cscenter.divide }'">삭제</button>
				<button type="button" class="btn btn-info"
					onclick="javascript:window.location.href='/${initParam.context_root }/cscenter/login/modifyForm.do?no=${requestScope.cscenter.cscenterNo}&page=${requestScope.page }'">수정</button>
			</c:if>
			<button type="button" class="btn btn-warning"
				onclick="javascript:window.location.href='/${initParam.context_root }/cscenter/list.do?page=${requestScope.page }&divide=${requestScope.cscenter.divide }'">목록</button>
		</div>
	</div>
</div>
